#ifndef HIGHLEVEL_H
#define HIGHLEVEL_H

#include <inttypes.h>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include "allocations/daq.h"
#include "util/util.h"
#include "stopWatch.h"
#include "allocations/comPort.h"
#include "global.h"
#include <math.h>

void example();

uint8_t init(GAIN_ENUM ADC_GAIN[4]   ,
                uint8_t DAC_Enable_msk  ,
                PLOC_ENUM ENC_PLOC[2]   ,
                uint16_t ENC_RES[]      ,
                uint8_t servoMsk        ,
                uint8_t motorMsk        ,
                uint16_t inputPinMsk    ,
                uint16_t outputPinMsk   ,
                uint16_t freq           );

void read(bool last,double lvData[],uint16_t depth);
void write(uint16_t servoVals[4],uint16_t motorVals[4], uint16_t analogOut[2],uint16_t dioSetMsk,uint16_t dioClrMsk);


#endif // HIGHLEVEL_H
